package oo.day10;

public class GetSetDemo {
    public static void main(String[] args ) {
        Teacher zs = new Teacher();
        zs.setName("leimu");
        zs.setAge(20);
        zs.setAddress("Re");
        System.out.println(zs.getName());
        System.out.println(zs.getAge());
        System.out.println(zs.getAddress());


        Teacher ls = new Teacher();
        ls.setName("lisi");
        ls.setAge(25);
        ls.setAddress("山东");
        System.out.println(ls.getName());
        System.out.println(ls.getAge());
        System.out.println(ls.getAddress());

    }
}
